mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-19 09:47:27 +10:00
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@616 84d0f5b1-2673-498c-a247-62c4ff18d310
1535 lines
50 KiB
Java
1535 lines
50 KiB
Java
/**
|
|
* Autogenerated by Thrift Compiler (0.8.0)
|
|
*
|
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
* @generated
|
|
*/
|
|
package com.profiler.common.dto.thrift;
|
|
|
|
import org.apache.thrift.scheme.IScheme;
|
|
import org.apache.thrift.scheme.SchemeFactory;
|
|
import org.apache.thrift.scheme.StandardScheme;
|
|
|
|
import org.apache.thrift.scheme.TupleScheme;
|
|
import org.apache.thrift.protocol.TTupleProtocol;
|
|
import java.util.List;
|
|
import java.util.ArrayList;
|
|
import java.util.Map;
|
|
import java.util.HashMap;
|
|
import java.util.EnumMap;
|
|
import java.util.Set;
|
|
import java.util.HashSet;
|
|
import java.util.EnumSet;
|
|
import java.util.Collections;
|
|
import java.util.BitSet;
|
|
import java.nio.ByteBuffer;
|
|
import java.util.Arrays;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
public class RequestDataThriftDTO implements org.apache.thrift.TBase<RequestDataThriftDTO, RequestDataThriftDTO._Fields>, java.io.Serializable, Cloneable {
|
|
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RequestDataThriftDTO");
|
|
|
|
private static final org.apache.thrift.protocol.TField DATA_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("dataType", org.apache.thrift.protocol.TType.I32, (short)1);
|
|
private static final org.apache.thrift.protocol.TField DATA_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("dataTime", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
private static final org.apache.thrift.protocol.TField DATA_HASH_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("dataHashCode", org.apache.thrift.protocol.TType.I32, (short)3);
|
|
private static final org.apache.thrift.protocol.TField DATA_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("dataString", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_DATA1_FIELD_DESC = new org.apache.thrift.protocol.TField("extraData1", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_DATA2_FIELD_DESC = new org.apache.thrift.protocol.TField("extraData2", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_DATA3_FIELD_DESC = new org.apache.thrift.protocol.TField("extraData3", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_INT1_FIELD_DESC = new org.apache.thrift.protocol.TField("extraInt1", org.apache.thrift.protocol.TType.I32, (short)8);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_INT2_FIELD_DESC = new org.apache.thrift.protocol.TField("extraInt2", org.apache.thrift.protocol.TType.I32, (short)9);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_INT3_FIELD_DESC = new org.apache.thrift.protocol.TField("extraInt3", org.apache.thrift.protocol.TType.I32, (short)10);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_LONG1_FIELD_DESC = new org.apache.thrift.protocol.TField("extraLong1", org.apache.thrift.protocol.TType.I64, (short)11);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_LONG2_FIELD_DESC = new org.apache.thrift.protocol.TField("extraLong2", org.apache.thrift.protocol.TType.I64, (short)12);
|
|
private static final org.apache.thrift.protocol.TField EXTRA_LONG3_FIELD_DESC = new org.apache.thrift.protocol.TField("extraLong3", org.apache.thrift.protocol.TType.I64, (short)13);
|
|
|
|
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
|
|
static {
|
|
schemes.put(StandardScheme.class, new RequestDataThriftDTOStandardSchemeFactory());
|
|
schemes.put(TupleScheme.class, new RequestDataThriftDTOTupleSchemeFactory());
|
|
}
|
|
|
|
private int dataType; // required
|
|
private long dataTime; // required
|
|
private int dataHashCode; // optional
|
|
private String dataString; // optional
|
|
private String extraData1; // optional
|
|
private String extraData2; // optional
|
|
private String extraData3; // optional
|
|
private int extraInt1; // optional
|
|
private int extraInt2; // optional
|
|
private int extraInt3; // optional
|
|
private long extraLong1; // optional
|
|
private long extraLong2; // optional
|
|
private long extraLong3; // optional
|
|
|
|
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
DATA_TYPE((short)1, "dataType"),
|
|
DATA_TIME((short)2, "dataTime"),
|
|
DATA_HASH_CODE((short)3, "dataHashCode"),
|
|
DATA_STRING((short)4, "dataString"),
|
|
EXTRA_DATA1((short)5, "extraData1"),
|
|
EXTRA_DATA2((short)6, "extraData2"),
|
|
EXTRA_DATA3((short)7, "extraData3"),
|
|
EXTRA_INT1((short)8, "extraInt1"),
|
|
EXTRA_INT2((short)9, "extraInt2"),
|
|
EXTRA_INT3((short)10, "extraInt3"),
|
|
EXTRA_LONG1((short)11, "extraLong1"),
|
|
EXTRA_LONG2((short)12, "extraLong2"),
|
|
EXTRA_LONG3((short)13, "extraLong3");
|
|
|
|
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
|
static {
|
|
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
byName.put(field.getFieldName(), field);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
*/
|
|
public static _Fields findByThriftId(int fieldId) {
|
|
switch(fieldId) {
|
|
case 1: // DATA_TYPE
|
|
return DATA_TYPE;
|
|
case 2: // DATA_TIME
|
|
return DATA_TIME;
|
|
case 3: // DATA_HASH_CODE
|
|
return DATA_HASH_CODE;
|
|
case 4: // DATA_STRING
|
|
return DATA_STRING;
|
|
case 5: // EXTRA_DATA1
|
|
return EXTRA_DATA1;
|
|
case 6: // EXTRA_DATA2
|
|
return EXTRA_DATA2;
|
|
case 7: // EXTRA_DATA3
|
|
return EXTRA_DATA3;
|
|
case 8: // EXTRA_INT1
|
|
return EXTRA_INT1;
|
|
case 9: // EXTRA_INT2
|
|
return EXTRA_INT2;
|
|
case 10: // EXTRA_INT3
|
|
return EXTRA_INT3;
|
|
case 11: // EXTRA_LONG1
|
|
return EXTRA_LONG1;
|
|
case 12: // EXTRA_LONG2
|
|
return EXTRA_LONG2;
|
|
case 13: // EXTRA_LONG3
|
|
return EXTRA_LONG3;
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
* if it is not found.
|
|
*/
|
|
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
_Fields fields = findByThriftId(fieldId);
|
|
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
return fields;
|
|
}
|
|
|
|
/**
|
|
* Find the _Fields constant that matches name, or null if its not found.
|
|
*/
|
|
public static _Fields findByName(String name) {
|
|
return byName.get(name);
|
|
}
|
|
|
|
private final short _thriftId;
|
|
private final String _fieldName;
|
|
|
|
_Fields(short thriftId, String fieldName) {
|
|
_thriftId = thriftId;
|
|
_fieldName = fieldName;
|
|
}
|
|
|
|
public short getThriftFieldId() {
|
|
return _thriftId;
|
|
}
|
|
|
|
public String getFieldName() {
|
|
return _fieldName;
|
|
}
|
|
}
|
|
|
|
// isset id assignments
|
|
private static final int __DATATYPE_ISSET_ID = 0;
|
|
private static final int __DATATIME_ISSET_ID = 1;
|
|
private static final int __DATAHASHCODE_ISSET_ID = 2;
|
|
private static final int __EXTRAINT1_ISSET_ID = 3;
|
|
private static final int __EXTRAINT2_ISSET_ID = 4;
|
|
private static final int __EXTRAINT3_ISSET_ID = 5;
|
|
private static final int __EXTRALONG1_ISSET_ID = 6;
|
|
private static final int __EXTRALONG2_ISSET_ID = 7;
|
|
private static final int __EXTRALONG3_ISSET_ID = 8;
|
|
private BitSet __isset_bit_vector = new BitSet(9);
|
|
private _Fields optionals[] = {_Fields.DATA_HASH_CODE,_Fields.DATA_STRING,_Fields.EXTRA_DATA1,_Fields.EXTRA_DATA2,_Fields.EXTRA_DATA3,_Fields.EXTRA_INT1,_Fields.EXTRA_INT2,_Fields.EXTRA_INT3,_Fields.EXTRA_LONG1,_Fields.EXTRA_LONG2,_Fields.EXTRA_LONG3};
|
|
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
static {
|
|
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
tmpMap.put(_Fields.DATA_TYPE, new org.apache.thrift.meta_data.FieldMetaData("dataType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
tmpMap.put(_Fields.DATA_TIME, new org.apache.thrift.meta_data.FieldMetaData("dataTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
tmpMap.put(_Fields.DATA_HASH_CODE, new org.apache.thrift.meta_data.FieldMetaData("dataHashCode", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
tmpMap.put(_Fields.DATA_STRING, new org.apache.thrift.meta_data.FieldMetaData("dataString", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
tmpMap.put(_Fields.EXTRA_DATA1, new org.apache.thrift.meta_data.FieldMetaData("extraData1", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
tmpMap.put(_Fields.EXTRA_DATA2, new org.apache.thrift.meta_data.FieldMetaData("extraData2", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
tmpMap.put(_Fields.EXTRA_DATA3, new org.apache.thrift.meta_data.FieldMetaData("extraData3", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
tmpMap.put(_Fields.EXTRA_INT1, new org.apache.thrift.meta_data.FieldMetaData("extraInt1", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
tmpMap.put(_Fields.EXTRA_INT2, new org.apache.thrift.meta_data.FieldMetaData("extraInt2", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
tmpMap.put(_Fields.EXTRA_INT3, new org.apache.thrift.meta_data.FieldMetaData("extraInt3", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
|
tmpMap.put(_Fields.EXTRA_LONG1, new org.apache.thrift.meta_data.FieldMetaData("extraLong1", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
tmpMap.put(_Fields.EXTRA_LONG2, new org.apache.thrift.meta_data.FieldMetaData("extraLong2", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
tmpMap.put(_Fields.EXTRA_LONG3, new org.apache.thrift.meta_data.FieldMetaData("extraLong3", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
|
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RequestDataThriftDTO.class, metaDataMap);
|
|
}
|
|
|
|
public RequestDataThriftDTO() {
|
|
}
|
|
|
|
public RequestDataThriftDTO(
|
|
int dataType,
|
|
long dataTime)
|
|
{
|
|
this();
|
|
this.dataType = dataType;
|
|
setDataTypeIsSet(true);
|
|
this.dataTime = dataTime;
|
|
setDataTimeIsSet(true);
|
|
}
|
|
|
|
/**
|
|
* Performs a deep copy on <i>other</i>.
|
|
*/
|
|
public RequestDataThriftDTO(RequestDataThriftDTO other) {
|
|
__isset_bit_vector.clear();
|
|
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
this.dataType = other.dataType;
|
|
this.dataTime = other.dataTime;
|
|
this.dataHashCode = other.dataHashCode;
|
|
if (other.isSetDataString()) {
|
|
this.dataString = other.dataString;
|
|
}
|
|
if (other.isSetExtraData1()) {
|
|
this.extraData1 = other.extraData1;
|
|
}
|
|
if (other.isSetExtraData2()) {
|
|
this.extraData2 = other.extraData2;
|
|
}
|
|
if (other.isSetExtraData3()) {
|
|
this.extraData3 = other.extraData3;
|
|
}
|
|
this.extraInt1 = other.extraInt1;
|
|
this.extraInt2 = other.extraInt2;
|
|
this.extraInt3 = other.extraInt3;
|
|
this.extraLong1 = other.extraLong1;
|
|
this.extraLong2 = other.extraLong2;
|
|
this.extraLong3 = other.extraLong3;
|
|
}
|
|
|
|
public RequestDataThriftDTO deepCopy() {
|
|
return new RequestDataThriftDTO(this);
|
|
}
|
|
|
|
@Override
|
|
public void clear() {
|
|
setDataTypeIsSet(false);
|
|
this.dataType = 0;
|
|
setDataTimeIsSet(false);
|
|
this.dataTime = 0;
|
|
setDataHashCodeIsSet(false);
|
|
this.dataHashCode = 0;
|
|
this.dataString = null;
|
|
this.extraData1 = null;
|
|
this.extraData2 = null;
|
|
this.extraData3 = null;
|
|
setExtraInt1IsSet(false);
|
|
this.extraInt1 = 0;
|
|
setExtraInt2IsSet(false);
|
|
this.extraInt2 = 0;
|
|
setExtraInt3IsSet(false);
|
|
this.extraInt3 = 0;
|
|
setExtraLong1IsSet(false);
|
|
this.extraLong1 = 0;
|
|
setExtraLong2IsSet(false);
|
|
this.extraLong2 = 0;
|
|
setExtraLong3IsSet(false);
|
|
this.extraLong3 = 0;
|
|
}
|
|
|
|
public int getDataType() {
|
|
return this.dataType;
|
|
}
|
|
|
|
public void setDataType(int dataType) {
|
|
this.dataType = dataType;
|
|
setDataTypeIsSet(true);
|
|
}
|
|
|
|
public void unsetDataType() {
|
|
__isset_bit_vector.clear(__DATATYPE_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field dataType is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetDataType() {
|
|
return __isset_bit_vector.get(__DATATYPE_ISSET_ID);
|
|
}
|
|
|
|
public void setDataTypeIsSet(boolean value) {
|
|
__isset_bit_vector.set(__DATATYPE_ISSET_ID, value);
|
|
}
|
|
|
|
public long getDataTime() {
|
|
return this.dataTime;
|
|
}
|
|
|
|
public void setDataTime(long dataTime) {
|
|
this.dataTime = dataTime;
|
|
setDataTimeIsSet(true);
|
|
}
|
|
|
|
public void unsetDataTime() {
|
|
__isset_bit_vector.clear(__DATATIME_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field dataTime is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetDataTime() {
|
|
return __isset_bit_vector.get(__DATATIME_ISSET_ID);
|
|
}
|
|
|
|
public void setDataTimeIsSet(boolean value) {
|
|
__isset_bit_vector.set(__DATATIME_ISSET_ID, value);
|
|
}
|
|
|
|
public int getDataHashCode() {
|
|
return this.dataHashCode;
|
|
}
|
|
|
|
public void setDataHashCode(int dataHashCode) {
|
|
this.dataHashCode = dataHashCode;
|
|
setDataHashCodeIsSet(true);
|
|
}
|
|
|
|
public void unsetDataHashCode() {
|
|
__isset_bit_vector.clear(__DATAHASHCODE_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field dataHashCode is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetDataHashCode() {
|
|
return __isset_bit_vector.get(__DATAHASHCODE_ISSET_ID);
|
|
}
|
|
|
|
public void setDataHashCodeIsSet(boolean value) {
|
|
__isset_bit_vector.set(__DATAHASHCODE_ISSET_ID, value);
|
|
}
|
|
|
|
public String getDataString() {
|
|
return this.dataString;
|
|
}
|
|
|
|
public void setDataString(String dataString) {
|
|
this.dataString = dataString;
|
|
}
|
|
|
|
public void unsetDataString() {
|
|
this.dataString = null;
|
|
}
|
|
|
|
/** Returns true if field dataString is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetDataString() {
|
|
return this.dataString != null;
|
|
}
|
|
|
|
public void setDataStringIsSet(boolean value) {
|
|
if (!value) {
|
|
this.dataString = null;
|
|
}
|
|
}
|
|
|
|
public String getExtraData1() {
|
|
return this.extraData1;
|
|
}
|
|
|
|
public void setExtraData1(String extraData1) {
|
|
this.extraData1 = extraData1;
|
|
}
|
|
|
|
public void unsetExtraData1() {
|
|
this.extraData1 = null;
|
|
}
|
|
|
|
/** Returns true if field extraData1 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraData1() {
|
|
return this.extraData1 != null;
|
|
}
|
|
|
|
public void setExtraData1IsSet(boolean value) {
|
|
if (!value) {
|
|
this.extraData1 = null;
|
|
}
|
|
}
|
|
|
|
public String getExtraData2() {
|
|
return this.extraData2;
|
|
}
|
|
|
|
public void setExtraData2(String extraData2) {
|
|
this.extraData2 = extraData2;
|
|
}
|
|
|
|
public void unsetExtraData2() {
|
|
this.extraData2 = null;
|
|
}
|
|
|
|
/** Returns true if field extraData2 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraData2() {
|
|
return this.extraData2 != null;
|
|
}
|
|
|
|
public void setExtraData2IsSet(boolean value) {
|
|
if (!value) {
|
|
this.extraData2 = null;
|
|
}
|
|
}
|
|
|
|
public String getExtraData3() {
|
|
return this.extraData3;
|
|
}
|
|
|
|
public void setExtraData3(String extraData3) {
|
|
this.extraData3 = extraData3;
|
|
}
|
|
|
|
public void unsetExtraData3() {
|
|
this.extraData3 = null;
|
|
}
|
|
|
|
/** Returns true if field extraData3 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraData3() {
|
|
return this.extraData3 != null;
|
|
}
|
|
|
|
public void setExtraData3IsSet(boolean value) {
|
|
if (!value) {
|
|
this.extraData3 = null;
|
|
}
|
|
}
|
|
|
|
public int getExtraInt1() {
|
|
return this.extraInt1;
|
|
}
|
|
|
|
public void setExtraInt1(int extraInt1) {
|
|
this.extraInt1 = extraInt1;
|
|
setExtraInt1IsSet(true);
|
|
}
|
|
|
|
public void unsetExtraInt1() {
|
|
__isset_bit_vector.clear(__EXTRAINT1_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field extraInt1 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraInt1() {
|
|
return __isset_bit_vector.get(__EXTRAINT1_ISSET_ID);
|
|
}
|
|
|
|
public void setExtraInt1IsSet(boolean value) {
|
|
__isset_bit_vector.set(__EXTRAINT1_ISSET_ID, value);
|
|
}
|
|
|
|
public int getExtraInt2() {
|
|
return this.extraInt2;
|
|
}
|
|
|
|
public void setExtraInt2(int extraInt2) {
|
|
this.extraInt2 = extraInt2;
|
|
setExtraInt2IsSet(true);
|
|
}
|
|
|
|
public void unsetExtraInt2() {
|
|
__isset_bit_vector.clear(__EXTRAINT2_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field extraInt2 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraInt2() {
|
|
return __isset_bit_vector.get(__EXTRAINT2_ISSET_ID);
|
|
}
|
|
|
|
public void setExtraInt2IsSet(boolean value) {
|
|
__isset_bit_vector.set(__EXTRAINT2_ISSET_ID, value);
|
|
}
|
|
|
|
public int getExtraInt3() {
|
|
return this.extraInt3;
|
|
}
|
|
|
|
public void setExtraInt3(int extraInt3) {
|
|
this.extraInt3 = extraInt3;
|
|
setExtraInt3IsSet(true);
|
|
}
|
|
|
|
public void unsetExtraInt3() {
|
|
__isset_bit_vector.clear(__EXTRAINT3_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field extraInt3 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraInt3() {
|
|
return __isset_bit_vector.get(__EXTRAINT3_ISSET_ID);
|
|
}
|
|
|
|
public void setExtraInt3IsSet(boolean value) {
|
|
__isset_bit_vector.set(__EXTRAINT3_ISSET_ID, value);
|
|
}
|
|
|
|
public long getExtraLong1() {
|
|
return this.extraLong1;
|
|
}
|
|
|
|
public void setExtraLong1(long extraLong1) {
|
|
this.extraLong1 = extraLong1;
|
|
setExtraLong1IsSet(true);
|
|
}
|
|
|
|
public void unsetExtraLong1() {
|
|
__isset_bit_vector.clear(__EXTRALONG1_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field extraLong1 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraLong1() {
|
|
return __isset_bit_vector.get(__EXTRALONG1_ISSET_ID);
|
|
}
|
|
|
|
public void setExtraLong1IsSet(boolean value) {
|
|
__isset_bit_vector.set(__EXTRALONG1_ISSET_ID, value);
|
|
}
|
|
|
|
public long getExtraLong2() {
|
|
return this.extraLong2;
|
|
}
|
|
|
|
public void setExtraLong2(long extraLong2) {
|
|
this.extraLong2 = extraLong2;
|
|
setExtraLong2IsSet(true);
|
|
}
|
|
|
|
public void unsetExtraLong2() {
|
|
__isset_bit_vector.clear(__EXTRALONG2_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field extraLong2 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraLong2() {
|
|
return __isset_bit_vector.get(__EXTRALONG2_ISSET_ID);
|
|
}
|
|
|
|
public void setExtraLong2IsSet(boolean value) {
|
|
__isset_bit_vector.set(__EXTRALONG2_ISSET_ID, value);
|
|
}
|
|
|
|
public long getExtraLong3() {
|
|
return this.extraLong3;
|
|
}
|
|
|
|
public void setExtraLong3(long extraLong3) {
|
|
this.extraLong3 = extraLong3;
|
|
setExtraLong3IsSet(true);
|
|
}
|
|
|
|
public void unsetExtraLong3() {
|
|
__isset_bit_vector.clear(__EXTRALONG3_ISSET_ID);
|
|
}
|
|
|
|
/** Returns true if field extraLong3 is set (has been assigned a value) and false otherwise */
|
|
public boolean isSetExtraLong3() {
|
|
return __isset_bit_vector.get(__EXTRALONG3_ISSET_ID);
|
|
}
|
|
|
|
public void setExtraLong3IsSet(boolean value) {
|
|
__isset_bit_vector.set(__EXTRALONG3_ISSET_ID, value);
|
|
}
|
|
|
|
public void setFieldValue(_Fields field, Object value) {
|
|
switch (field) {
|
|
case DATA_TYPE:
|
|
if (value == null) {
|
|
unsetDataType();
|
|
} else {
|
|
setDataType((Integer)value);
|
|
}
|
|
break;
|
|
|
|
case DATA_TIME:
|
|
if (value == null) {
|
|
unsetDataTime();
|
|
} else {
|
|
setDataTime((Long)value);
|
|
}
|
|
break;
|
|
|
|
case DATA_HASH_CODE:
|
|
if (value == null) {
|
|
unsetDataHashCode();
|
|
} else {
|
|
setDataHashCode((Integer)value);
|
|
}
|
|
break;
|
|
|
|
case DATA_STRING:
|
|
if (value == null) {
|
|
unsetDataString();
|
|
} else {
|
|
setDataString((String)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_DATA1:
|
|
if (value == null) {
|
|
unsetExtraData1();
|
|
} else {
|
|
setExtraData1((String)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_DATA2:
|
|
if (value == null) {
|
|
unsetExtraData2();
|
|
} else {
|
|
setExtraData2((String)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_DATA3:
|
|
if (value == null) {
|
|
unsetExtraData3();
|
|
} else {
|
|
setExtraData3((String)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_INT1:
|
|
if (value == null) {
|
|
unsetExtraInt1();
|
|
} else {
|
|
setExtraInt1((Integer)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_INT2:
|
|
if (value == null) {
|
|
unsetExtraInt2();
|
|
} else {
|
|
setExtraInt2((Integer)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_INT3:
|
|
if (value == null) {
|
|
unsetExtraInt3();
|
|
} else {
|
|
setExtraInt3((Integer)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_LONG1:
|
|
if (value == null) {
|
|
unsetExtraLong1();
|
|
} else {
|
|
setExtraLong1((Long)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_LONG2:
|
|
if (value == null) {
|
|
unsetExtraLong2();
|
|
} else {
|
|
setExtraLong2((Long)value);
|
|
}
|
|
break;
|
|
|
|
case EXTRA_LONG3:
|
|
if (value == null) {
|
|
unsetExtraLong3();
|
|
} else {
|
|
setExtraLong3((Long)value);
|
|
}
|
|
break;
|
|
|
|
}
|
|
}
|
|
|
|
public Object getFieldValue(_Fields field) {
|
|
switch (field) {
|
|
case DATA_TYPE:
|
|
return Integer.valueOf(getDataType());
|
|
|
|
case DATA_TIME:
|
|
return Long.valueOf(getDataTime());
|
|
|
|
case DATA_HASH_CODE:
|
|
return Integer.valueOf(getDataHashCode());
|
|
|
|
case DATA_STRING:
|
|
return getDataString();
|
|
|
|
case EXTRA_DATA1:
|
|
return getExtraData1();
|
|
|
|
case EXTRA_DATA2:
|
|
return getExtraData2();
|
|
|
|
case EXTRA_DATA3:
|
|
return getExtraData3();
|
|
|
|
case EXTRA_INT1:
|
|
return Integer.valueOf(getExtraInt1());
|
|
|
|
case EXTRA_INT2:
|
|
return Integer.valueOf(getExtraInt2());
|
|
|
|
case EXTRA_INT3:
|
|
return Integer.valueOf(getExtraInt3());
|
|
|
|
case EXTRA_LONG1:
|
|
return Long.valueOf(getExtraLong1());
|
|
|
|
case EXTRA_LONG2:
|
|
return Long.valueOf(getExtraLong2());
|
|
|
|
case EXTRA_LONG3:
|
|
return Long.valueOf(getExtraLong3());
|
|
|
|
}
|
|
throw new IllegalStateException();
|
|
}
|
|
|
|
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
public boolean isSet(_Fields field) {
|
|
if (field == null) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
|
|
switch (field) {
|
|
case DATA_TYPE:
|
|
return isSetDataType();
|
|
case DATA_TIME:
|
|
return isSetDataTime();
|
|
case DATA_HASH_CODE:
|
|
return isSetDataHashCode();
|
|
case DATA_STRING:
|
|
return isSetDataString();
|
|
case EXTRA_DATA1:
|
|
return isSetExtraData1();
|
|
case EXTRA_DATA2:
|
|
return isSetExtraData2();
|
|
case EXTRA_DATA3:
|
|
return isSetExtraData3();
|
|
case EXTRA_INT1:
|
|
return isSetExtraInt1();
|
|
case EXTRA_INT2:
|
|
return isSetExtraInt2();
|
|
case EXTRA_INT3:
|
|
return isSetExtraInt3();
|
|
case EXTRA_LONG1:
|
|
return isSetExtraLong1();
|
|
case EXTRA_LONG2:
|
|
return isSetExtraLong2();
|
|
case EXTRA_LONG3:
|
|
return isSetExtraLong3();
|
|
}
|
|
throw new IllegalStateException();
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object that) {
|
|
if (that == null)
|
|
return false;
|
|
if (that instanceof RequestDataThriftDTO)
|
|
return this.equals((RequestDataThriftDTO)that);
|
|
return false;
|
|
}
|
|
|
|
public boolean equals(RequestDataThriftDTO that) {
|
|
if (that == null)
|
|
return false;
|
|
|
|
boolean this_present_dataType = true;
|
|
boolean that_present_dataType = true;
|
|
if (this_present_dataType || that_present_dataType) {
|
|
if (!(this_present_dataType && that_present_dataType))
|
|
return false;
|
|
if (this.dataType != that.dataType)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_dataTime = true;
|
|
boolean that_present_dataTime = true;
|
|
if (this_present_dataTime || that_present_dataTime) {
|
|
if (!(this_present_dataTime && that_present_dataTime))
|
|
return false;
|
|
if (this.dataTime != that.dataTime)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_dataHashCode = true && this.isSetDataHashCode();
|
|
boolean that_present_dataHashCode = true && that.isSetDataHashCode();
|
|
if (this_present_dataHashCode || that_present_dataHashCode) {
|
|
if (!(this_present_dataHashCode && that_present_dataHashCode))
|
|
return false;
|
|
if (this.dataHashCode != that.dataHashCode)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_dataString = true && this.isSetDataString();
|
|
boolean that_present_dataString = true && that.isSetDataString();
|
|
if (this_present_dataString || that_present_dataString) {
|
|
if (!(this_present_dataString && that_present_dataString))
|
|
return false;
|
|
if (!this.dataString.equals(that.dataString))
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraData1 = true && this.isSetExtraData1();
|
|
boolean that_present_extraData1 = true && that.isSetExtraData1();
|
|
if (this_present_extraData1 || that_present_extraData1) {
|
|
if (!(this_present_extraData1 && that_present_extraData1))
|
|
return false;
|
|
if (!this.extraData1.equals(that.extraData1))
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraData2 = true && this.isSetExtraData2();
|
|
boolean that_present_extraData2 = true && that.isSetExtraData2();
|
|
if (this_present_extraData2 || that_present_extraData2) {
|
|
if (!(this_present_extraData2 && that_present_extraData2))
|
|
return false;
|
|
if (!this.extraData2.equals(that.extraData2))
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraData3 = true && this.isSetExtraData3();
|
|
boolean that_present_extraData3 = true && that.isSetExtraData3();
|
|
if (this_present_extraData3 || that_present_extraData3) {
|
|
if (!(this_present_extraData3 && that_present_extraData3))
|
|
return false;
|
|
if (!this.extraData3.equals(that.extraData3))
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraInt1 = true && this.isSetExtraInt1();
|
|
boolean that_present_extraInt1 = true && that.isSetExtraInt1();
|
|
if (this_present_extraInt1 || that_present_extraInt1) {
|
|
if (!(this_present_extraInt1 && that_present_extraInt1))
|
|
return false;
|
|
if (this.extraInt1 != that.extraInt1)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraInt2 = true && this.isSetExtraInt2();
|
|
boolean that_present_extraInt2 = true && that.isSetExtraInt2();
|
|
if (this_present_extraInt2 || that_present_extraInt2) {
|
|
if (!(this_present_extraInt2 && that_present_extraInt2))
|
|
return false;
|
|
if (this.extraInt2 != that.extraInt2)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraInt3 = true && this.isSetExtraInt3();
|
|
boolean that_present_extraInt3 = true && that.isSetExtraInt3();
|
|
if (this_present_extraInt3 || that_present_extraInt3) {
|
|
if (!(this_present_extraInt3 && that_present_extraInt3))
|
|
return false;
|
|
if (this.extraInt3 != that.extraInt3)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraLong1 = true && this.isSetExtraLong1();
|
|
boolean that_present_extraLong1 = true && that.isSetExtraLong1();
|
|
if (this_present_extraLong1 || that_present_extraLong1) {
|
|
if (!(this_present_extraLong1 && that_present_extraLong1))
|
|
return false;
|
|
if (this.extraLong1 != that.extraLong1)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraLong2 = true && this.isSetExtraLong2();
|
|
boolean that_present_extraLong2 = true && that.isSetExtraLong2();
|
|
if (this_present_extraLong2 || that_present_extraLong2) {
|
|
if (!(this_present_extraLong2 && that_present_extraLong2))
|
|
return false;
|
|
if (this.extraLong2 != that.extraLong2)
|
|
return false;
|
|
}
|
|
|
|
boolean this_present_extraLong3 = true && this.isSetExtraLong3();
|
|
boolean that_present_extraLong3 = true && that.isSetExtraLong3();
|
|
if (this_present_extraLong3 || that_present_extraLong3) {
|
|
if (!(this_present_extraLong3 && that_present_extraLong3))
|
|
return false;
|
|
if (this.extraLong3 != that.extraLong3)
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return 0;
|
|
}
|
|
|
|
public int compareTo(RequestDataThriftDTO other) {
|
|
if (!getClass().equals(other.getClass())) {
|
|
return getClass().getName().compareTo(other.getClass().getName());
|
|
}
|
|
|
|
int lastComparison = 0;
|
|
RequestDataThriftDTO typedOther = (RequestDataThriftDTO)other;
|
|
|
|
lastComparison = Boolean.valueOf(isSetDataType()).compareTo(typedOther.isSetDataType());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetDataType()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataType, typedOther.dataType);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetDataTime()).compareTo(typedOther.isSetDataTime());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetDataTime()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataTime, typedOther.dataTime);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetDataHashCode()).compareTo(typedOther.isSetDataHashCode());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetDataHashCode()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataHashCode, typedOther.dataHashCode);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetDataString()).compareTo(typedOther.isSetDataString());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetDataString()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataString, typedOther.dataString);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraData1()).compareTo(typedOther.isSetExtraData1());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraData1()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraData1, typedOther.extraData1);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraData2()).compareTo(typedOther.isSetExtraData2());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraData2()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraData2, typedOther.extraData2);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraData3()).compareTo(typedOther.isSetExtraData3());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraData3()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraData3, typedOther.extraData3);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraInt1()).compareTo(typedOther.isSetExtraInt1());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraInt1()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraInt1, typedOther.extraInt1);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraInt2()).compareTo(typedOther.isSetExtraInt2());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraInt2()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraInt2, typedOther.extraInt2);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraInt3()).compareTo(typedOther.isSetExtraInt3());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraInt3()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraInt3, typedOther.extraInt3);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraLong1()).compareTo(typedOther.isSetExtraLong1());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraLong1()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraLong1, typedOther.extraLong1);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraLong2()).compareTo(typedOther.isSetExtraLong2());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraLong2()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraLong2, typedOther.extraLong2);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
lastComparison = Boolean.valueOf(isSetExtraLong3()).compareTo(typedOther.isSetExtraLong3());
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
if (isSetExtraLong3()) {
|
|
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extraLong3, typedOther.extraLong3);
|
|
if (lastComparison != 0) {
|
|
return lastComparison;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public _Fields fieldForId(int fieldId) {
|
|
return _Fields.findByThriftId(fieldId);
|
|
}
|
|
|
|
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
|
|
}
|
|
|
|
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder("RequestDataThriftDTO(");
|
|
boolean first = true;
|
|
|
|
sb.append("dataType:");
|
|
sb.append(this.dataType);
|
|
first = false;
|
|
if (!first) sb.append(", ");
|
|
sb.append("dataTime:");
|
|
sb.append(this.dataTime);
|
|
first = false;
|
|
if (isSetDataHashCode()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("dataHashCode:");
|
|
sb.append(this.dataHashCode);
|
|
first = false;
|
|
}
|
|
if (isSetDataString()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("dataString:");
|
|
if (this.dataString == null) {
|
|
sb.append("null");
|
|
} else {
|
|
sb.append(this.dataString);
|
|
}
|
|
first = false;
|
|
}
|
|
if (isSetExtraData1()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraData1:");
|
|
if (this.extraData1 == null) {
|
|
sb.append("null");
|
|
} else {
|
|
sb.append(this.extraData1);
|
|
}
|
|
first = false;
|
|
}
|
|
if (isSetExtraData2()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraData2:");
|
|
if (this.extraData2 == null) {
|
|
sb.append("null");
|
|
} else {
|
|
sb.append(this.extraData2);
|
|
}
|
|
first = false;
|
|
}
|
|
if (isSetExtraData3()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraData3:");
|
|
if (this.extraData3 == null) {
|
|
sb.append("null");
|
|
} else {
|
|
sb.append(this.extraData3);
|
|
}
|
|
first = false;
|
|
}
|
|
if (isSetExtraInt1()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraInt1:");
|
|
sb.append(this.extraInt1);
|
|
first = false;
|
|
}
|
|
if (isSetExtraInt2()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraInt2:");
|
|
sb.append(this.extraInt2);
|
|
first = false;
|
|
}
|
|
if (isSetExtraInt3()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraInt3:");
|
|
sb.append(this.extraInt3);
|
|
first = false;
|
|
}
|
|
if (isSetExtraLong1()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraLong1:");
|
|
sb.append(this.extraLong1);
|
|
first = false;
|
|
}
|
|
if (isSetExtraLong2()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraLong2:");
|
|
sb.append(this.extraLong2);
|
|
first = false;
|
|
}
|
|
if (isSetExtraLong3()) {
|
|
if (!first) sb.append(", ");
|
|
sb.append("extraLong3:");
|
|
sb.append(this.extraLong3);
|
|
first = false;
|
|
}
|
|
sb.append(")");
|
|
return sb.toString();
|
|
}
|
|
|
|
public void validate() throws org.apache.thrift.TException {
|
|
// check for required fields
|
|
}
|
|
|
|
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
try {
|
|
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
} catch (org.apache.thrift.TException te) {
|
|
throw new java.io.IOException(te);
|
|
}
|
|
}
|
|
|
|
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
try {
|
|
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
__isset_bit_vector = new BitSet(1);
|
|
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
} catch (org.apache.thrift.TException te) {
|
|
throw new java.io.IOException(te);
|
|
}
|
|
}
|
|
|
|
private static class RequestDataThriftDTOStandardSchemeFactory implements SchemeFactory {
|
|
public RequestDataThriftDTOStandardScheme getScheme() {
|
|
return new RequestDataThriftDTOStandardScheme();
|
|
}
|
|
}
|
|
|
|
private static class RequestDataThriftDTOStandardScheme extends StandardScheme<RequestDataThriftDTO> {
|
|
|
|
public void read(org.apache.thrift.protocol.TProtocol iprot, RequestDataThriftDTO struct) throws org.apache.thrift.TException {
|
|
org.apache.thrift.protocol.TField schemeField;
|
|
iprot.readStructBegin();
|
|
while (true)
|
|
{
|
|
schemeField = iprot.readFieldBegin();
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
|
|
break;
|
|
}
|
|
switch (schemeField.id) {
|
|
case 1: // DATA_TYPE
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
|
struct.dataType = iprot.readI32();
|
|
struct.setDataTypeIsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 2: // DATA_TIME
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
|
|
struct.dataTime = iprot.readI64();
|
|
struct.setDataTimeIsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 3: // DATA_HASH_CODE
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
|
struct.dataHashCode = iprot.readI32();
|
|
struct.setDataHashCodeIsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 4: // DATA_STRING
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
|
|
struct.dataString = iprot.readString();
|
|
struct.setDataStringIsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 5: // EXTRA_DATA1
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
|
|
struct.extraData1 = iprot.readString();
|
|
struct.setExtraData1IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 6: // EXTRA_DATA2
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
|
|
struct.extraData2 = iprot.readString();
|
|
struct.setExtraData2IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 7: // EXTRA_DATA3
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
|
|
struct.extraData3 = iprot.readString();
|
|
struct.setExtraData3IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 8: // EXTRA_INT1
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
|
struct.extraInt1 = iprot.readI32();
|
|
struct.setExtraInt1IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 9: // EXTRA_INT2
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
|
struct.extraInt2 = iprot.readI32();
|
|
struct.setExtraInt2IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 10: // EXTRA_INT3
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
|
|
struct.extraInt3 = iprot.readI32();
|
|
struct.setExtraInt3IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 11: // EXTRA_LONG1
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
|
|
struct.extraLong1 = iprot.readI64();
|
|
struct.setExtraLong1IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 12: // EXTRA_LONG2
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
|
|
struct.extraLong2 = iprot.readI64();
|
|
struct.setExtraLong2IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
case 13: // EXTRA_LONG3
|
|
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
|
|
struct.extraLong3 = iprot.readI64();
|
|
struct.setExtraLong3IsSet(true);
|
|
} else {
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
break;
|
|
default:
|
|
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
|
|
}
|
|
iprot.readFieldEnd();
|
|
}
|
|
iprot.readStructEnd();
|
|
struct.validate();
|
|
}
|
|
|
|
public void write(org.apache.thrift.protocol.TProtocol oprot, RequestDataThriftDTO struct) throws org.apache.thrift.TException {
|
|
struct.validate();
|
|
|
|
oprot.writeStructBegin(STRUCT_DESC);
|
|
oprot.writeFieldBegin(DATA_TYPE_FIELD_DESC);
|
|
oprot.writeI32(struct.dataType);
|
|
oprot.writeFieldEnd();
|
|
oprot.writeFieldBegin(DATA_TIME_FIELD_DESC);
|
|
oprot.writeI64(struct.dataTime);
|
|
oprot.writeFieldEnd();
|
|
if (struct.isSetDataHashCode()) {
|
|
oprot.writeFieldBegin(DATA_HASH_CODE_FIELD_DESC);
|
|
oprot.writeI32(struct.dataHashCode);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
if (struct.dataString != null) {
|
|
if (struct.isSetDataString()) {
|
|
oprot.writeFieldBegin(DATA_STRING_FIELD_DESC);
|
|
oprot.writeString(struct.dataString);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
}
|
|
if (struct.extraData1 != null) {
|
|
if (struct.isSetExtraData1()) {
|
|
oprot.writeFieldBegin(EXTRA_DATA1_FIELD_DESC);
|
|
oprot.writeString(struct.extraData1);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
}
|
|
if (struct.extraData2 != null) {
|
|
if (struct.isSetExtraData2()) {
|
|
oprot.writeFieldBegin(EXTRA_DATA2_FIELD_DESC);
|
|
oprot.writeString(struct.extraData2);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
}
|
|
if (struct.extraData3 != null) {
|
|
if (struct.isSetExtraData3()) {
|
|
oprot.writeFieldBegin(EXTRA_DATA3_FIELD_DESC);
|
|
oprot.writeString(struct.extraData3);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
}
|
|
if (struct.isSetExtraInt1()) {
|
|
oprot.writeFieldBegin(EXTRA_INT1_FIELD_DESC);
|
|
oprot.writeI32(struct.extraInt1);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
if (struct.isSetExtraInt2()) {
|
|
oprot.writeFieldBegin(EXTRA_INT2_FIELD_DESC);
|
|
oprot.writeI32(struct.extraInt2);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
if (struct.isSetExtraInt3()) {
|
|
oprot.writeFieldBegin(EXTRA_INT3_FIELD_DESC);
|
|
oprot.writeI32(struct.extraInt3);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
if (struct.isSetExtraLong1()) {
|
|
oprot.writeFieldBegin(EXTRA_LONG1_FIELD_DESC);
|
|
oprot.writeI64(struct.extraLong1);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
if (struct.isSetExtraLong2()) {
|
|
oprot.writeFieldBegin(EXTRA_LONG2_FIELD_DESC);
|
|
oprot.writeI64(struct.extraLong2);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
if (struct.isSetExtraLong3()) {
|
|
oprot.writeFieldBegin(EXTRA_LONG3_FIELD_DESC);
|
|
oprot.writeI64(struct.extraLong3);
|
|
oprot.writeFieldEnd();
|
|
}
|
|
oprot.writeFieldStop();
|
|
oprot.writeStructEnd();
|
|
}
|
|
|
|
}
|
|
|
|
private static class RequestDataThriftDTOTupleSchemeFactory implements SchemeFactory {
|
|
public RequestDataThriftDTOTupleScheme getScheme() {
|
|
return new RequestDataThriftDTOTupleScheme();
|
|
}
|
|
}
|
|
|
|
private static class RequestDataThriftDTOTupleScheme extends TupleScheme<RequestDataThriftDTO> {
|
|
|
|
@Override
|
|
public void write(org.apache.thrift.protocol.TProtocol prot, RequestDataThriftDTO struct) throws org.apache.thrift.TException {
|
|
TTupleProtocol oprot = (TTupleProtocol) prot;
|
|
BitSet optionals = new BitSet();
|
|
if (struct.isSetDataType()) {
|
|
optionals.set(0);
|
|
}
|
|
if (struct.isSetDataTime()) {
|
|
optionals.set(1);
|
|
}
|
|
if (struct.isSetDataHashCode()) {
|
|
optionals.set(2);
|
|
}
|
|
if (struct.isSetDataString()) {
|
|
optionals.set(3);
|
|
}
|
|
if (struct.isSetExtraData1()) {
|
|
optionals.set(4);
|
|
}
|
|
if (struct.isSetExtraData2()) {
|
|
optionals.set(5);
|
|
}
|
|
if (struct.isSetExtraData3()) {
|
|
optionals.set(6);
|
|
}
|
|
if (struct.isSetExtraInt1()) {
|
|
optionals.set(7);
|
|
}
|
|
if (struct.isSetExtraInt2()) {
|
|
optionals.set(8);
|
|
}
|
|
if (struct.isSetExtraInt3()) {
|
|
optionals.set(9);
|
|
}
|
|
if (struct.isSetExtraLong1()) {
|
|
optionals.set(10);
|
|
}
|
|
if (struct.isSetExtraLong2()) {
|
|
optionals.set(11);
|
|
}
|
|
if (struct.isSetExtraLong3()) {
|
|
optionals.set(12);
|
|
}
|
|
oprot.writeBitSet(optionals, 13);
|
|
if (struct.isSetDataType()) {
|
|
oprot.writeI32(struct.dataType);
|
|
}
|
|
if (struct.isSetDataTime()) {
|
|
oprot.writeI64(struct.dataTime);
|
|
}
|
|
if (struct.isSetDataHashCode()) {
|
|
oprot.writeI32(struct.dataHashCode);
|
|
}
|
|
if (struct.isSetDataString()) {
|
|
oprot.writeString(struct.dataString);
|
|
}
|
|
if (struct.isSetExtraData1()) {
|
|
oprot.writeString(struct.extraData1);
|
|
}
|
|
if (struct.isSetExtraData2()) {
|
|
oprot.writeString(struct.extraData2);
|
|
}
|
|
if (struct.isSetExtraData3()) {
|
|
oprot.writeString(struct.extraData3);
|
|
}
|
|
if (struct.isSetExtraInt1()) {
|
|
oprot.writeI32(struct.extraInt1);
|
|
}
|
|
if (struct.isSetExtraInt2()) {
|
|
oprot.writeI32(struct.extraInt2);
|
|
}
|
|
if (struct.isSetExtraInt3()) {
|
|
oprot.writeI32(struct.extraInt3);
|
|
}
|
|
if (struct.isSetExtraLong1()) {
|
|
oprot.writeI64(struct.extraLong1);
|
|
}
|
|
if (struct.isSetExtraLong2()) {
|
|
oprot.writeI64(struct.extraLong2);
|
|
}
|
|
if (struct.isSetExtraLong3()) {
|
|
oprot.writeI64(struct.extraLong3);
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void read(org.apache.thrift.protocol.TProtocol prot, RequestDataThriftDTO struct) throws org.apache.thrift.TException {
|
|
TTupleProtocol iprot = (TTupleProtocol) prot;
|
|
BitSet incoming = iprot.readBitSet(13);
|
|
if (incoming.get(0)) {
|
|
struct.dataType = iprot.readI32();
|
|
struct.setDataTypeIsSet(true);
|
|
}
|
|
if (incoming.get(1)) {
|
|
struct.dataTime = iprot.readI64();
|
|
struct.setDataTimeIsSet(true);
|
|
}
|
|
if (incoming.get(2)) {
|
|
struct.dataHashCode = iprot.readI32();
|
|
struct.setDataHashCodeIsSet(true);
|
|
}
|
|
if (incoming.get(3)) {
|
|
struct.dataString = iprot.readString();
|
|
struct.setDataStringIsSet(true);
|
|
}
|
|
if (incoming.get(4)) {
|
|
struct.extraData1 = iprot.readString();
|
|
struct.setExtraData1IsSet(true);
|
|
}
|
|
if (incoming.get(5)) {
|
|
struct.extraData2 = iprot.readString();
|
|
struct.setExtraData2IsSet(true);
|
|
}
|
|
if (incoming.get(6)) {
|
|
struct.extraData3 = iprot.readString();
|
|
struct.setExtraData3IsSet(true);
|
|
}
|
|
if (incoming.get(7)) {
|
|
struct.extraInt1 = iprot.readI32();
|
|
struct.setExtraInt1IsSet(true);
|
|
}
|
|
if (incoming.get(8)) {
|
|
struct.extraInt2 = iprot.readI32();
|
|
struct.setExtraInt2IsSet(true);
|
|
}
|
|
if (incoming.get(9)) {
|
|
struct.extraInt3 = iprot.readI32();
|
|
struct.setExtraInt3IsSet(true);
|
|
}
|
|
if (incoming.get(10)) {
|
|
struct.extraLong1 = iprot.readI64();
|
|
struct.setExtraLong1IsSet(true);
|
|
}
|
|
if (incoming.get(11)) {
|
|
struct.extraLong2 = iprot.readI64();
|
|
struct.setExtraLong2IsSet(true);
|
|
}
|
|
if (incoming.get(12)) {
|
|
struct.extraLong3 = iprot.readI64();
|
|
struct.setExtraLong3IsSet(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|