org.apache.hadoop.hive.serde2.thrift.test.MegaStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hive-apache Show documentation
Show all versions of hive-apache Show documentation
Shaded version of Apache Hive for Trino
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.serde2.thrift.test;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import io.trino.hive.$internal.org.slf4j.Logger;
import io.trino.hive.$internal.org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
public class MegaStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MegaStruct");
private static final org.apache.thrift.protocol.TField MY_BOOL_FIELD_DESC = new org.apache.thrift.protocol.TField("my_bool", org.apache.thrift.protocol.TType.BOOL, (short)1);
private static final org.apache.thrift.protocol.TField MY_BYTE_FIELD_DESC = new org.apache.thrift.protocol.TField("my_byte", org.apache.thrift.protocol.TType.BYTE, (short)2);
private static final org.apache.thrift.protocol.TField MY_16BIT_INT_FIELD_DESC = new org.apache.thrift.protocol.TField("my_16bit_int", org.apache.thrift.protocol.TType.I16, (short)3);
private static final org.apache.thrift.protocol.TField MY_32BIT_INT_FIELD_DESC = new org.apache.thrift.protocol.TField("my_32bit_int", org.apache.thrift.protocol.TType.I32, (short)4);
private static final org.apache.thrift.protocol.TField MY_64BIT_INT_FIELD_DESC = new org.apache.thrift.protocol.TField("my_64bit_int", org.apache.thrift.protocol.TType.I64, (short)5);
private static final org.apache.thrift.protocol.TField MY_DOUBLE_FIELD_DESC = new org.apache.thrift.protocol.TField("my_double", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
private static final org.apache.thrift.protocol.TField MY_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("my_string", org.apache.thrift.protocol.TType.STRING, (short)7);
private static final org.apache.thrift.protocol.TField MY_BINARY_FIELD_DESC = new org.apache.thrift.protocol.TField("my_binary", org.apache.thrift.protocol.TType.STRING, (short)8);
private static final org.apache.thrift.protocol.TField MY_STRING_STRING_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("my_string_string_map", org.apache.thrift.protocol.TType.MAP, (short)9);
private static final org.apache.thrift.protocol.TField MY_STRING_ENUM_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("my_string_enum_map", org.apache.thrift.protocol.TType.MAP, (short)10);
private static final org.apache.thrift.protocol.TField MY_ENUM_STRING_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("my_enum_string_map", org.apache.thrift.protocol.TType.MAP, (short)11);
private static final org.apache.thrift.protocol.TField MY_ENUM_STRUCT_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("my_enum_struct_map", org.apache.thrift.protocol.TType.MAP, (short)12);
private static final org.apache.thrift.protocol.TField MY_ENUM_STRINGLIST_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("my_enum_stringlist_map", org.apache.thrift.protocol.TType.MAP, (short)13);
private static final org.apache.thrift.protocol.TField MY_ENUM_STRUCTLIST_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("my_enum_structlist_map", org.apache.thrift.protocol.TType.MAP, (short)14);
private static final org.apache.thrift.protocol.TField MY_STRINGLIST_FIELD_DESC = new org.apache.thrift.protocol.TField("my_stringlist", org.apache.thrift.protocol.TType.LIST, (short)15);
private static final org.apache.thrift.protocol.TField MY_STRUCTLIST_FIELD_DESC = new org.apache.thrift.protocol.TField("my_structlist", org.apache.thrift.protocol.TType.LIST, (short)16);
private static final org.apache.thrift.protocol.TField MY_ENUMLIST_FIELD_DESC = new org.apache.thrift.protocol.TField("my_enumlist", org.apache.thrift.protocol.TType.LIST, (short)17);
private static final org.apache.thrift.protocol.TField MY_STRINGSET_FIELD_DESC = new org.apache.thrift.protocol.TField("my_stringset", org.apache.thrift.protocol.TType.SET, (short)18);
private static final org.apache.thrift.protocol.TField MY_ENUMSET_FIELD_DESC = new org.apache.thrift.protocol.TField("my_enumset", org.apache.thrift.protocol.TType.SET, (short)19);
private static final org.apache.thrift.protocol.TField MY_STRUCTSET_FIELD_DESC = new org.apache.thrift.protocol.TField("my_structset", org.apache.thrift.protocol.TType.SET, (short)20);
private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new MegaStructStandardSchemeFactory());
schemes.put(TupleScheme.class, new MegaStructTupleSchemeFactory());
}
private boolean my_bool; // optional
private byte my_byte; // optional
private short my_16bit_int; // optional
private int my_32bit_int; // optional
private long my_64bit_int; // optional
private double my_double; // optional
private String my_string; // optional
private ByteBuffer my_binary; // optional
private Map my_string_string_map; // optional
private Map my_string_enum_map; // optional
private Map my_enum_string_map; // optional
private Map my_enum_struct_map; // optional
private Map> my_enum_stringlist_map; // optional
private Map> my_enum_structlist_map; // optional
private List my_stringlist; // optional
private List my_structlist; // optional
private List my_enumlist; // optional
private Set my_stringset; // optional
private Set my_enumset; // optional
private Set my_structset; // 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 {
MY_BOOL((short)1, "my_bool"),
MY_BYTE((short)2, "my_byte"),
MY_16BIT_INT((short)3, "my_16bit_int"),
MY_32BIT_INT((short)4, "my_32bit_int"),
MY_64BIT_INT((short)5, "my_64bit_int"),
MY_DOUBLE((short)6, "my_double"),
MY_STRING((short)7, "my_string"),
MY_BINARY((short)8, "my_binary"),
MY_STRING_STRING_MAP((short)9, "my_string_string_map"),
MY_STRING_ENUM_MAP((short)10, "my_string_enum_map"),
MY_ENUM_STRING_MAP((short)11, "my_enum_string_map"),
MY_ENUM_STRUCT_MAP((short)12, "my_enum_struct_map"),
MY_ENUM_STRINGLIST_MAP((short)13, "my_enum_stringlist_map"),
MY_ENUM_STRUCTLIST_MAP((short)14, "my_enum_structlist_map"),
MY_STRINGLIST((short)15, "my_stringlist"),
MY_STRUCTLIST((short)16, "my_structlist"),
MY_ENUMLIST((short)17, "my_enumlist"),
MY_STRINGSET((short)18, "my_stringset"),
MY_ENUMSET((short)19, "my_enumset"),
MY_STRUCTSET((short)20, "my_structset");
private static final Map byName = new HashMap();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // MY_BOOL
return MY_BOOL;
case 2: // MY_BYTE
return MY_BYTE;
case 3: // MY_16BIT_INT
return MY_16BIT_INT;
case 4: // MY_32BIT_INT
return MY_32BIT_INT;
case 5: // MY_64BIT_INT
return MY_64BIT_INT;
case 6: // MY_DOUBLE
return MY_DOUBLE;
case 7: // MY_STRING
return MY_STRING;
case 8: // MY_BINARY
return MY_BINARY;
case 9: // MY_STRING_STRING_MAP
return MY_STRING_STRING_MAP;
case 10: // MY_STRING_ENUM_MAP
return MY_STRING_ENUM_MAP;
case 11: // MY_ENUM_STRING_MAP
return MY_ENUM_STRING_MAP;
case 12: // MY_ENUM_STRUCT_MAP
return MY_ENUM_STRUCT_MAP;
case 13: // MY_ENUM_STRINGLIST_MAP
return MY_ENUM_STRINGLIST_MAP;
case 14: // MY_ENUM_STRUCTLIST_MAP
return MY_ENUM_STRUCTLIST_MAP;
case 15: // MY_STRINGLIST
return MY_STRINGLIST;
case 16: // MY_STRUCTLIST
return MY_STRUCTLIST;
case 17: // MY_ENUMLIST
return MY_ENUMLIST;
case 18: // MY_STRINGSET
return MY_STRINGSET;
case 19: // MY_ENUMSET
return MY_ENUMSET;
case 20: // MY_STRUCTSET
return MY_STRUCTSET;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __MY_BOOL_ISSET_ID = 0;
private static final int __MY_BYTE_ISSET_ID = 1;
private static final int __MY_16BIT_INT_ISSET_ID = 2;
private static final int __MY_32BIT_INT_ISSET_ID = 3;
private static final int __MY_64BIT_INT_ISSET_ID = 4;
private static final int __MY_DOUBLE_ISSET_ID = 5;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.MY_BOOL,_Fields.MY_BYTE,_Fields.MY_16BIT_INT,_Fields.MY_32BIT_INT,_Fields.MY_64BIT_INT,_Fields.MY_DOUBLE,_Fields.MY_STRING,_Fields.MY_BINARY,_Fields.MY_STRING_STRING_MAP,_Fields.MY_STRING_ENUM_MAP,_Fields.MY_ENUM_STRING_MAP,_Fields.MY_ENUM_STRUCT_MAP,_Fields.MY_ENUM_STRINGLIST_MAP,_Fields.MY_ENUM_STRUCTLIST_MAP,_Fields.MY_STRINGLIST,_Fields.MY_STRUCTLIST,_Fields.MY_ENUMLIST,_Fields.MY_STRINGSET,_Fields.MY_ENUMSET,_Fields.MY_STRUCTSET};
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.MY_BOOL, new org.apache.thrift.meta_data.FieldMetaData("my_bool", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.MY_BYTE, new org.apache.thrift.meta_data.FieldMetaData("my_byte", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BYTE)));
tmpMap.put(_Fields.MY_16BIT_INT, new org.apache.thrift.meta_data.FieldMetaData("my_16bit_int", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
tmpMap.put(_Fields.MY_32BIT_INT, new org.apache.thrift.meta_data.FieldMetaData("my_32bit_int", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.MY_64BIT_INT, new org.apache.thrift.meta_data.FieldMetaData("my_64bit_int", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.MY_DOUBLE, new org.apache.thrift.meta_data.FieldMetaData("my_double", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
tmpMap.put(_Fields.MY_STRING, new org.apache.thrift.meta_data.FieldMetaData("my_string", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.MY_BINARY, new org.apache.thrift.meta_data.FieldMetaData("my_binary", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
tmpMap.put(_Fields.MY_STRING_STRING_MAP, new org.apache.thrift.meta_data.FieldMetaData("my_string_string_map", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.MY_STRING_ENUM_MAP, new org.apache.thrift.meta_data.FieldMetaData("my_string_enum_map", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new 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.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, MyEnum.class))));
tmpMap.put(_Fields.MY_ENUM_STRING_MAP, new org.apache.thrift.meta_data.FieldMetaData("my_enum_string_map", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, MyEnum.class),
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.MY_ENUM_STRUCT_MAP, new org.apache.thrift.meta_data.FieldMetaData("my_enum_struct_map", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, MyEnum.class),
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, MiniStruct.class))));
tmpMap.put(_Fields.MY_ENUM_STRINGLIST_MAP, new org.apache.thrift.meta_data.FieldMetaData("my_enum_stringlist_map", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, MyEnum.class),
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.MY_ENUM_STRUCTLIST_MAP, new org.apache.thrift.meta_data.FieldMetaData("my_enum_structlist_map", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, MyEnum.class),
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, MiniStruct.class)))));
tmpMap.put(_Fields.MY_STRINGLIST, new org.apache.thrift.meta_data.FieldMetaData("my_stringlist", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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.MY_STRUCTLIST, new org.apache.thrift.meta_data.FieldMetaData("my_structlist", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, MiniStruct.class))));
tmpMap.put(_Fields.MY_ENUMLIST, new org.apache.thrift.meta_data.FieldMetaData("my_enumlist", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, MyEnum.class))));
tmpMap.put(_Fields.MY_STRINGSET, new org.apache.thrift.meta_data.FieldMetaData("my_stringset", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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.MY_ENUMSET, new org.apache.thrift.meta_data.FieldMetaData("my_enumset", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, MyEnum.class))));
tmpMap.put(_Fields.MY_STRUCTSET, new org.apache.thrift.meta_data.FieldMetaData("my_structset", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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, MiniStruct.class))));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(MegaStruct.class, metaDataMap);
}
public MegaStruct() {
}
/**
* Performs a deep copy on other.
*/
public MegaStruct(MegaStruct other) {
__isset_bitfield = other.__isset_bitfield;
this.my_bool = other.my_bool;
this.my_byte = other.my_byte;
this.my_16bit_int = other.my_16bit_int;
this.my_32bit_int = other.my_32bit_int;
this.my_64bit_int = other.my_64bit_int;
this.my_double = other.my_double;
if (other.isSetMy_string()) {
this.my_string = other.my_string;
}
if (other.isSetMy_binary()) {
this.my_binary = org.apache.thrift.TBaseHelper.copyBinary(other.my_binary);
}
if (other.isSetMy_string_string_map()) {
Map __this__my_string_string_map = new HashMap(other.my_string_string_map);
this.my_string_string_map = __this__my_string_string_map;
}
if (other.isSetMy_string_enum_map()) {
Map __this__my_string_enum_map = new HashMap(other.my_string_enum_map.size());
for (Map.Entry other_element : other.my_string_enum_map.entrySet()) {
String other_element_key = other_element.getKey();
MyEnum other_element_value = other_element.getValue();
String __this__my_string_enum_map_copy_key = other_element_key;
MyEnum __this__my_string_enum_map_copy_value = other_element_value;
__this__my_string_enum_map.put(__this__my_string_enum_map_copy_key, __this__my_string_enum_map_copy_value);
}
this.my_string_enum_map = __this__my_string_enum_map;
}
if (other.isSetMy_enum_string_map()) {
Map __this__my_enum_string_map = new HashMap(other.my_enum_string_map.size());
for (Map.Entry other_element : other.my_enum_string_map.entrySet()) {
MyEnum other_element_key = other_element.getKey();
String other_element_value = other_element.getValue();
MyEnum __this__my_enum_string_map_copy_key = other_element_key;
String __this__my_enum_string_map_copy_value = other_element_value;
__this__my_enum_string_map.put(__this__my_enum_string_map_copy_key, __this__my_enum_string_map_copy_value);
}
this.my_enum_string_map = __this__my_enum_string_map;
}
if (other.isSetMy_enum_struct_map()) {
Map __this__my_enum_struct_map = new HashMap(other.my_enum_struct_map.size());
for (Map.Entry other_element : other.my_enum_struct_map.entrySet()) {
MyEnum other_element_key = other_element.getKey();
MiniStruct other_element_value = other_element.getValue();
MyEnum __this__my_enum_struct_map_copy_key = other_element_key;
MiniStruct __this__my_enum_struct_map_copy_value = new MiniStruct(other_element_value);
__this__my_enum_struct_map.put(__this__my_enum_struct_map_copy_key, __this__my_enum_struct_map_copy_value);
}
this.my_enum_struct_map = __this__my_enum_struct_map;
}
if (other.isSetMy_enum_stringlist_map()) {
Map> __this__my_enum_stringlist_map = new HashMap>(other.my_enum_stringlist_map.size());
for (Map.Entry> other_element : other.my_enum_stringlist_map.entrySet()) {
MyEnum other_element_key = other_element.getKey();
List other_element_value = other_element.getValue();
MyEnum __this__my_enum_stringlist_map_copy_key = other_element_key;
List __this__my_enum_stringlist_map_copy_value = new ArrayList(other_element_value);
__this__my_enum_stringlist_map.put(__this__my_enum_stringlist_map_copy_key, __this__my_enum_stringlist_map_copy_value);
}
this.my_enum_stringlist_map = __this__my_enum_stringlist_map;
}
if (other.isSetMy_enum_structlist_map()) {
Map> __this__my_enum_structlist_map = new HashMap>(other.my_enum_structlist_map.size());
for (Map.Entry> other_element : other.my_enum_structlist_map.entrySet()) {
MyEnum other_element_key = other_element.getKey();
List other_element_value = other_element.getValue();
MyEnum __this__my_enum_structlist_map_copy_key = other_element_key;
List __this__my_enum_structlist_map_copy_value = new ArrayList(other_element_value.size());
for (MiniStruct other_element_value_element : other_element_value) {
__this__my_enum_structlist_map_copy_value.add(new MiniStruct(other_element_value_element));
}
__this__my_enum_structlist_map.put(__this__my_enum_structlist_map_copy_key, __this__my_enum_structlist_map_copy_value);
}
this.my_enum_structlist_map = __this__my_enum_structlist_map;
}
if (other.isSetMy_stringlist()) {
List __this__my_stringlist = new ArrayList(other.my_stringlist);
this.my_stringlist = __this__my_stringlist;
}
if (other.isSetMy_structlist()) {
List __this__my_structlist = new ArrayList(other.my_structlist.size());
for (MiniStruct other_element : other.my_structlist) {
__this__my_structlist.add(new MiniStruct(other_element));
}
this.my_structlist = __this__my_structlist;
}
if (other.isSetMy_enumlist()) {
List __this__my_enumlist = new ArrayList(other.my_enumlist.size());
for (MyEnum other_element : other.my_enumlist) {
__this__my_enumlist.add(other_element);
}
this.my_enumlist = __this__my_enumlist;
}
if (other.isSetMy_stringset()) {
Set __this__my_stringset = new HashSet(other.my_stringset);
this.my_stringset = __this__my_stringset;
}
if (other.isSetMy_enumset()) {
Set __this__my_enumset = new HashSet(other.my_enumset.size());
for (MyEnum other_element : other.my_enumset) {
__this__my_enumset.add(other_element);
}
this.my_enumset = __this__my_enumset;
}
if (other.isSetMy_structset()) {
Set __this__my_structset = new HashSet(other.my_structset.size());
for (MiniStruct other_element : other.my_structset) {
__this__my_structset.add(new MiniStruct(other_element));
}
this.my_structset = __this__my_structset;
}
}
public MegaStruct deepCopy() {
return new MegaStruct(this);
}
@Override
public void clear() {
setMy_boolIsSet(false);
this.my_bool = false;
setMy_byteIsSet(false);
this.my_byte = 0;
setMy_16bit_intIsSet(false);
this.my_16bit_int = 0;
setMy_32bit_intIsSet(false);
this.my_32bit_int = 0;
setMy_64bit_intIsSet(false);
this.my_64bit_int = 0;
setMy_doubleIsSet(false);
this.my_double = 0.0;
this.my_string = null;
this.my_binary = null;
this.my_string_string_map = null;
this.my_string_enum_map = null;
this.my_enum_string_map = null;
this.my_enum_struct_map = null;
this.my_enum_stringlist_map = null;
this.my_enum_structlist_map = null;
this.my_stringlist = null;
this.my_structlist = null;
this.my_enumlist = null;
this.my_stringset = null;
this.my_enumset = null;
this.my_structset = null;
}
public boolean isMy_bool() {
return this.my_bool;
}
public void setMy_bool(boolean my_bool) {
this.my_bool = my_bool;
setMy_boolIsSet(true);
}
public void unsetMy_bool() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MY_BOOL_ISSET_ID);
}
/** Returns true if field my_bool is set (has been assigned a value) and false otherwise */
public boolean isSetMy_bool() {
return EncodingUtils.testBit(__isset_bitfield, __MY_BOOL_ISSET_ID);
}
public void setMy_boolIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MY_BOOL_ISSET_ID, value);
}
public byte getMy_byte() {
return this.my_byte;
}
public void setMy_byte(byte my_byte) {
this.my_byte = my_byte;
setMy_byteIsSet(true);
}
public void unsetMy_byte() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MY_BYTE_ISSET_ID);
}
/** Returns true if field my_byte is set (has been assigned a value) and false otherwise */
public boolean isSetMy_byte() {
return EncodingUtils.testBit(__isset_bitfield, __MY_BYTE_ISSET_ID);
}
public void setMy_byteIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MY_BYTE_ISSET_ID, value);
}
public short getMy_16bit_int() {
return this.my_16bit_int;
}
public void setMy_16bit_int(short my_16bit_int) {
this.my_16bit_int = my_16bit_int;
setMy_16bit_intIsSet(true);
}
public void unsetMy_16bit_int() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MY_16BIT_INT_ISSET_ID);
}
/** Returns true if field my_16bit_int is set (has been assigned a value) and false otherwise */
public boolean isSetMy_16bit_int() {
return EncodingUtils.testBit(__isset_bitfield, __MY_16BIT_INT_ISSET_ID);
}
public void setMy_16bit_intIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MY_16BIT_INT_ISSET_ID, value);
}
public int getMy_32bit_int() {
return this.my_32bit_int;
}
public void setMy_32bit_int(int my_32bit_int) {
this.my_32bit_int = my_32bit_int;
setMy_32bit_intIsSet(true);
}
public void unsetMy_32bit_int() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MY_32BIT_INT_ISSET_ID);
}
/** Returns true if field my_32bit_int is set (has been assigned a value) and false otherwise */
public boolean isSetMy_32bit_int() {
return EncodingUtils.testBit(__isset_bitfield, __MY_32BIT_INT_ISSET_ID);
}
public void setMy_32bit_intIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MY_32BIT_INT_ISSET_ID, value);
}
public long getMy_64bit_int() {
return this.my_64bit_int;
}
public void setMy_64bit_int(long my_64bit_int) {
this.my_64bit_int = my_64bit_int;
setMy_64bit_intIsSet(true);
}
public void unsetMy_64bit_int() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MY_64BIT_INT_ISSET_ID);
}
/** Returns true if field my_64bit_int is set (has been assigned a value) and false otherwise */
public boolean isSetMy_64bit_int() {
return EncodingUtils.testBit(__isset_bitfield, __MY_64BIT_INT_ISSET_ID);
}
public void setMy_64bit_intIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MY_64BIT_INT_ISSET_ID, value);
}
public double getMy_double() {
return this.my_double;
}
public void setMy_double(double my_double) {
this.my_double = my_double;
setMy_doubleIsSet(true);
}
public void unsetMy_double() {
__isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MY_DOUBLE_ISSET_ID);
}
/** Returns true if field my_double is set (has been assigned a value) and false otherwise */
public boolean isSetMy_double() {
return EncodingUtils.testBit(__isset_bitfield, __MY_DOUBLE_ISSET_ID);
}
public void setMy_doubleIsSet(boolean value) {
__isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MY_DOUBLE_ISSET_ID, value);
}
public String getMy_string() {
return this.my_string;
}
public void setMy_string(String my_string) {
this.my_string = my_string;
}
public void unsetMy_string() {
this.my_string = null;
}
/** Returns true if field my_string is set (has been assigned a value) and false otherwise */
public boolean isSetMy_string() {
return this.my_string != null;
}
public void setMy_stringIsSet(boolean value) {
if (!value) {
this.my_string = null;
}
}
public byte[] getMy_binary() {
setMy_binary(org.apache.thrift.TBaseHelper.rightSize(my_binary));
return my_binary == null ? null : my_binary.array();
}
public ByteBuffer bufferForMy_binary() {
return org.apache.thrift.TBaseHelper.copyBinary(my_binary);
}
public void setMy_binary(byte[] my_binary) {
this.my_binary = my_binary == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(my_binary, my_binary.length));
}
public void setMy_binary(ByteBuffer my_binary) {
this.my_binary = org.apache.thrift.TBaseHelper.copyBinary(my_binary);
}
public void unsetMy_binary() {
this.my_binary = null;
}
/** Returns true if field my_binary is set (has been assigned a value) and false otherwise */
public boolean isSetMy_binary() {
return this.my_binary != null;
}
public void setMy_binaryIsSet(boolean value) {
if (!value) {
this.my_binary = null;
}
}
public int getMy_string_string_mapSize() {
return (this.my_string_string_map == null) ? 0 : this.my_string_string_map.size();
}
public void putToMy_string_string_map(String key, String val) {
if (this.my_string_string_map == null) {
this.my_string_string_map = new HashMap();
}
this.my_string_string_map.put(key, val);
}
public Map getMy_string_string_map() {
return this.my_string_string_map;
}
public void setMy_string_string_map(Map my_string_string_map) {
this.my_string_string_map = my_string_string_map;
}
public void unsetMy_string_string_map() {
this.my_string_string_map = null;
}
/** Returns true if field my_string_string_map is set (has been assigned a value) and false otherwise */
public boolean isSetMy_string_string_map() {
return this.my_string_string_map != null;
}
public void setMy_string_string_mapIsSet(boolean value) {
if (!value) {
this.my_string_string_map = null;
}
}
public int getMy_string_enum_mapSize() {
return (this.my_string_enum_map == null) ? 0 : this.my_string_enum_map.size();
}
public void putToMy_string_enum_map(String key, MyEnum val) {
if (this.my_string_enum_map == null) {
this.my_string_enum_map = new HashMap();
}
this.my_string_enum_map.put(key, val);
}
public Map getMy_string_enum_map() {
return this.my_string_enum_map;
}
public void setMy_string_enum_map(Map my_string_enum_map) {
this.my_string_enum_map = my_string_enum_map;
}
public void unsetMy_string_enum_map() {
this.my_string_enum_map = null;
}
/** Returns true if field my_string_enum_map is set (has been assigned a value) and false otherwise */
public boolean isSetMy_string_enum_map() {
return this.my_string_enum_map != null;
}
public void setMy_string_enum_mapIsSet(boolean value) {
if (!value) {
this.my_string_enum_map = null;
}
}
public int getMy_enum_string_mapSize() {
return (this.my_enum_string_map == null) ? 0 : this.my_enum_string_map.size();
}
public void putToMy_enum_string_map(MyEnum key, String val) {
if (this.my_enum_string_map == null) {
this.my_enum_string_map = new HashMap();
}
this.my_enum_string_map.put(key, val);
}
public Map getMy_enum_string_map() {
return this.my_enum_string_map;
}
public void setMy_enum_string_map(Map my_enum_string_map) {
this.my_enum_string_map = my_enum_string_map;
}
public void unsetMy_enum_string_map() {
this.my_enum_string_map = null;
}
/** Returns true if field my_enum_string_map is set (has been assigned a value) and false otherwise */
public boolean isSetMy_enum_string_map() {
return this.my_enum_string_map != null;
}
public void setMy_enum_string_mapIsSet(boolean value) {
if (!value) {
this.my_enum_string_map = null;
}
}
public int getMy_enum_struct_mapSize() {
return (this.my_enum_struct_map == null) ? 0 : this.my_enum_struct_map.size();
}
public void putToMy_enum_struct_map(MyEnum key, MiniStruct val) {
if (this.my_enum_struct_map == null) {
this.my_enum_struct_map = new HashMap();
}
this.my_enum_struct_map.put(key, val);
}
public Map getMy_enum_struct_map() {
return this.my_enum_struct_map;
}
public void setMy_enum_struct_map(Map my_enum_struct_map) {
this.my_enum_struct_map = my_enum_struct_map;
}
public void unsetMy_enum_struct_map() {
this.my_enum_struct_map = null;
}
/** Returns true if field my_enum_struct_map is set (has been assigned a value) and false otherwise */
public boolean isSetMy_enum_struct_map() {
return this.my_enum_struct_map != null;
}
public void setMy_enum_struct_mapIsSet(boolean value) {
if (!value) {
this.my_enum_struct_map = null;
}
}
public int getMy_enum_stringlist_mapSize() {
return (this.my_enum_stringlist_map == null) ? 0 : this.my_enum_stringlist_map.size();
}
public void putToMy_enum_stringlist_map(MyEnum key, List val) {
if (this.my_enum_stringlist_map == null) {
this.my_enum_stringlist_map = new HashMap>();
}
this.my_enum_stringlist_map.put(key, val);
}
public Map> getMy_enum_stringlist_map() {
return this.my_enum_stringlist_map;
}
public void setMy_enum_stringlist_map(Map> my_enum_stringlist_map) {
this.my_enum_stringlist_map = my_enum_stringlist_map;
}
public void unsetMy_enum_stringlist_map() {
this.my_enum_stringlist_map = null;
}
/** Returns true if field my_enum_stringlist_map is set (has been assigned a value) and false otherwise */
public boolean isSetMy_enum_stringlist_map() {
return this.my_enum_stringlist_map != null;
}
public void setMy_enum_stringlist_mapIsSet(boolean value) {
if (!value) {
this.my_enum_stringlist_map = null;
}
}
public int getMy_enum_structlist_mapSize() {
return (this.my_enum_structlist_map == null) ? 0 : this.my_enum_structlist_map.size();
}
public void putToMy_enum_structlist_map(MyEnum key, List val) {
if (this.my_enum_structlist_map == null) {
this.my_enum_structlist_map = new HashMap>();
}
this.my_enum_structlist_map.put(key, val);
}
public Map> getMy_enum_structlist_map() {
return this.my_enum_structlist_map;
}
public void setMy_enum_structlist_map(Map> my_enum_structlist_map) {
this.my_enum_structlist_map = my_enum_structlist_map;
}
public void unsetMy_enum_structlist_map() {
this.my_enum_structlist_map = null;
}
/** Returns true if field my_enum_structlist_map is set (has been assigned a value) and false otherwise */
public boolean isSetMy_enum_structlist_map() {
return this.my_enum_structlist_map != null;
}
public void setMy_enum_structlist_mapIsSet(boolean value) {
if (!value) {
this.my_enum_structlist_map = null;
}
}
public int getMy_stringlistSize() {
return (this.my_stringlist == null) ? 0 : this.my_stringlist.size();
}
public java.util.Iterator getMy_stringlistIterator() {
return (this.my_stringlist == null) ? null : this.my_stringlist.iterator();
}
public void addToMy_stringlist(String elem) {
if (this.my_stringlist == null) {
this.my_stringlist = new ArrayList();
}
this.my_stringlist.add(elem);
}
public List getMy_stringlist() {
return this.my_stringlist;
}
public void setMy_stringlist(List my_stringlist) {
this.my_stringlist = my_stringlist;
}
public void unsetMy_stringlist() {
this.my_stringlist = null;
}
/** Returns true if field my_stringlist is set (has been assigned a value) and false otherwise */
public boolean isSetMy_stringlist() {
return this.my_stringlist != null;
}
public void setMy_stringlistIsSet(boolean value) {
if (!value) {
this.my_stringlist = null;
}
}
public int getMy_structlistSize() {
return (this.my_structlist == null) ? 0 : this.my_structlist.size();
}
public java.util.Iterator getMy_structlistIterator() {
return (this.my_structlist == null) ? null : this.my_structlist.iterator();
}
public void addToMy_structlist(MiniStruct elem) {
if (this.my_structlist == null) {
this.my_structlist = new ArrayList();
}
this.my_structlist.add(elem);
}
public List getMy_structlist() {
return this.my_structlist;
}
public void setMy_structlist(List my_structlist) {
this.my_structlist = my_structlist;
}
public void unsetMy_structlist() {
this.my_structlist = null;
}
/** Returns true if field my_structlist is set (has been assigned a value) and false otherwise */
public boolean isSetMy_structlist() {
return this.my_structlist != null;
}
public void setMy_structlistIsSet(boolean value) {
if (!value) {
this.my_structlist = null;
}
}
public int getMy_enumlistSize() {
return (this.my_enumlist == null) ? 0 : this.my_enumlist.size();
}
public java.util.Iterator getMy_enumlistIterator() {
return (this.my_enumlist == null) ? null : this.my_enumlist.iterator();
}
public void addToMy_enumlist(MyEnum elem) {
if (this.my_enumlist == null) {
this.my_enumlist = new ArrayList();
}
this.my_enumlist.add(elem);
}
public List getMy_enumlist() {
return this.my_enumlist;
}
public void setMy_enumlist(List my_enumlist) {
this.my_enumlist = my_enumlist;
}
public void unsetMy_enumlist() {
this.my_enumlist = null;
}
/** Returns true if field my_enumlist is set (has been assigned a value) and false otherwise */
public boolean isSetMy_enumlist() {
return this.my_enumlist != null;
}
public void setMy_enumlistIsSet(boolean value) {
if (!value) {
this.my_enumlist = null;
}
}
public int getMy_stringsetSize() {
return (this.my_stringset == null) ? 0 : this.my_stringset.size();
}
public java.util.Iterator getMy_stringsetIterator() {
return (this.my_stringset == null) ? null : this.my_stringset.iterator();
}
public void addToMy_stringset(String elem) {
if (this.my_stringset == null) {
this.my_stringset = new HashSet();
}
this.my_stringset.add(elem);
}
public Set getMy_stringset() {
return this.my_stringset;
}
public void setMy_stringset(Set my_stringset) {
this.my_stringset = my_stringset;
}
public void unsetMy_stringset() {
this.my_stringset = null;
}
/** Returns true if field my_stringset is set (has been assigned a value) and false otherwise */
public boolean isSetMy_stringset() {
return this.my_stringset != null;
}
public void setMy_stringsetIsSet(boolean value) {
if (!value) {
this.my_stringset = null;
}
}
public int getMy_enumsetSize() {
return (this.my_enumset == null) ? 0 : this.my_enumset.size();
}
public java.util.Iterator getMy_enumsetIterator() {
return (this.my_enumset == null) ? null : this.my_enumset.iterator();
}
public void addToMy_enumset(MyEnum elem) {
if (this.my_enumset == null) {
this.my_enumset = new HashSet();
}
this.my_enumset.add(elem);
}
public Set getMy_enumset() {
return this.my_enumset;
}
public void setMy_enumset(Set my_enumset) {
this.my_enumset = my_enumset;
}
public void unsetMy_enumset() {
this.my_enumset = null;
}
/** Returns true if field my_enumset is set (has been assigned a value) and false otherwise */
public boolean isSetMy_enumset() {
return this.my_enumset != null;
}
public void setMy_enumsetIsSet(boolean value) {
if (!value) {
this.my_enumset = null;
}
}
public int getMy_structsetSize() {
return (this.my_structset == null) ? 0 : this.my_structset.size();
}
public java.util.Iterator getMy_structsetIterator() {
return (this.my_structset == null) ? null : this.my_structset.iterator();
}
public void addToMy_structset(MiniStruct elem) {
if (this.my_structset == null) {
this.my_structset = new HashSet();
}
this.my_structset.add(elem);
}
public Set getMy_structset() {
return this.my_structset;
}
public void setMy_structset(Set my_structset) {
this.my_structset = my_structset;
}
public void unsetMy_structset() {
this.my_structset = null;
}
/** Returns true if field my_structset is set (has been assigned a value) and false otherwise */
public boolean isSetMy_structset() {
return this.my_structset != null;
}
public void setMy_structsetIsSet(boolean value) {
if (!value) {
this.my_structset = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case MY_BOOL:
if (value == null) {
unsetMy_bool();
} else {
setMy_bool((Boolean)value);
}
break;
case MY_BYTE:
if (value == null) {
unsetMy_byte();
} else {
setMy_byte((Byte)value);
}
break;
case MY_16BIT_INT:
if (value == null) {
unsetMy_16bit_int();
} else {
setMy_16bit_int((Short)value);
}
break;
case MY_32BIT_INT:
if (value == null) {
unsetMy_32bit_int();
} else {
setMy_32bit_int((Integer)value);
}
break;
case MY_64BIT_INT:
if (value == null) {
unsetMy_64bit_int();
} else {
setMy_64bit_int((Long)value);
}
break;
case MY_DOUBLE:
if (value == null) {
unsetMy_double();
} else {
setMy_double((Double)value);
}
break;
case MY_STRING:
if (value == null) {
unsetMy_string();
} else {
setMy_string((String)value);
}
break;
case MY_BINARY:
if (value == null) {
unsetMy_binary();
} else {
setMy_binary((ByteBuffer)value);
}
break;
case MY_STRING_STRING_MAP:
if (value == null) {
unsetMy_string_string_map();
} else {
setMy_string_string_map((Map)value);
}
break;
case MY_STRING_ENUM_MAP:
if (value == null) {
unsetMy_string_enum_map();
} else {
setMy_string_enum_map((Map)value);
}
break;
case MY_ENUM_STRING_MAP:
if (value == null) {
unsetMy_enum_string_map();
} else {
setMy_enum_string_map((Map)value);
}
break;
case MY_ENUM_STRUCT_MAP:
if (value == null) {
unsetMy_enum_struct_map();
} else {
setMy_enum_struct_map((Map)value);
}
break;
case MY_ENUM_STRINGLIST_MAP:
if (value == null) {
unsetMy_enum_stringlist_map();
} else {
setMy_enum_stringlist_map((Map>)value);
}
break;
case MY_ENUM_STRUCTLIST_MAP:
if (value == null) {
unsetMy_enum_structlist_map();
} else {
setMy_enum_structlist_map((Map>)value);
}
break;
case MY_STRINGLIST:
if (value == null) {
unsetMy_stringlist();
} else {
setMy_stringlist((List)value);
}
break;
case MY_STRUCTLIST:
if (value == null) {
unsetMy_structlist();
} else {
setMy_structlist((List)value);
}
break;
case MY_ENUMLIST:
if (value == null) {
unsetMy_enumlist();
} else {
setMy_enumlist((List)value);
}
break;
case MY_STRINGSET:
if (value == null) {
unsetMy_stringset();
} else {
setMy_stringset((Set)value);
}
break;
case MY_ENUMSET:
if (value == null) {
unsetMy_enumset();
} else {
setMy_enumset((Set)value);
}
break;
case MY_STRUCTSET:
if (value == null) {
unsetMy_structset();
} else {
setMy_structset((Set)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case MY_BOOL:
return isMy_bool();
case MY_BYTE:
return getMy_byte();
case MY_16BIT_INT:
return getMy_16bit_int();
case MY_32BIT_INT:
return getMy_32bit_int();
case MY_64BIT_INT:
return getMy_64bit_int();
case MY_DOUBLE:
return getMy_double();
case MY_STRING:
return getMy_string();
case MY_BINARY:
return getMy_binary();
case MY_STRING_STRING_MAP:
return getMy_string_string_map();
case MY_STRING_ENUM_MAP:
return getMy_string_enum_map();
case MY_ENUM_STRING_MAP:
return getMy_enum_string_map();
case MY_ENUM_STRUCT_MAP:
return getMy_enum_struct_map();
case MY_ENUM_STRINGLIST_MAP:
return getMy_enum_stringlist_map();
case MY_ENUM_STRUCTLIST_MAP:
return getMy_enum_structlist_map();
case MY_STRINGLIST:
return getMy_stringlist();
case MY_STRUCTLIST:
return getMy_structlist();
case MY_ENUMLIST:
return getMy_enumlist();
case MY_STRINGSET:
return getMy_stringset();
case MY_ENUMSET:
return getMy_enumset();
case MY_STRUCTSET:
return getMy_structset();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case MY_BOOL:
return isSetMy_bool();
case MY_BYTE:
return isSetMy_byte();
case MY_16BIT_INT:
return isSetMy_16bit_int();
case MY_32BIT_INT:
return isSetMy_32bit_int();
case MY_64BIT_INT:
return isSetMy_64bit_int();
case MY_DOUBLE:
return isSetMy_double();
case MY_STRING:
return isSetMy_string();
case MY_BINARY:
return isSetMy_binary();
case MY_STRING_STRING_MAP:
return isSetMy_string_string_map();
case MY_STRING_ENUM_MAP:
return isSetMy_string_enum_map();
case MY_ENUM_STRING_MAP:
return isSetMy_enum_string_map();
case MY_ENUM_STRUCT_MAP:
return isSetMy_enum_struct_map();
case MY_ENUM_STRINGLIST_MAP:
return isSetMy_enum_stringlist_map();
case MY_ENUM_STRUCTLIST_MAP:
return isSetMy_enum_structlist_map();
case MY_STRINGLIST:
return isSetMy_stringlist();
case MY_STRUCTLIST:
return isSetMy_structlist();
case MY_ENUMLIST:
return isSetMy_enumlist();
case MY_STRINGSET:
return isSetMy_stringset();
case MY_ENUMSET:
return isSetMy_enumset();
case MY_STRUCTSET:
return isSetMy_structset();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof MegaStruct)
return this.equals((MegaStruct)that);
return false;
}
public boolean equals(MegaStruct that) {
if (that == null)
return false;
boolean this_present_my_bool = true && this.isSetMy_bool();
boolean that_present_my_bool = true && that.isSetMy_bool();
if (this_present_my_bool || that_present_my_bool) {
if (!(this_present_my_bool && that_present_my_bool))
return false;
if (this.my_bool != that.my_bool)
return false;
}
boolean this_present_my_byte = true && this.isSetMy_byte();
boolean that_present_my_byte = true && that.isSetMy_byte();
if (this_present_my_byte || that_present_my_byte) {
if (!(this_present_my_byte && that_present_my_byte))
return false;
if (this.my_byte != that.my_byte)
return false;
}
boolean this_present_my_16bit_int = true && this.isSetMy_16bit_int();
boolean that_present_my_16bit_int = true && that.isSetMy_16bit_int();
if (this_present_my_16bit_int || that_present_my_16bit_int) {
if (!(this_present_my_16bit_int && that_present_my_16bit_int))
return false;
if (this.my_16bit_int != that.my_16bit_int)
return false;
}
boolean this_present_my_32bit_int = true && this.isSetMy_32bit_int();
boolean that_present_my_32bit_int = true && that.isSetMy_32bit_int();
if (this_present_my_32bit_int || that_present_my_32bit_int) {
if (!(this_present_my_32bit_int && that_present_my_32bit_int))
return false;
if (this.my_32bit_int != that.my_32bit_int)
return false;
}
boolean this_present_my_64bit_int = true && this.isSetMy_64bit_int();
boolean that_present_my_64bit_int = true && that.isSetMy_64bit_int();
if (this_present_my_64bit_int || that_present_my_64bit_int) {
if (!(this_present_my_64bit_int && that_present_my_64bit_int))
return false;
if (this.my_64bit_int != that.my_64bit_int)
return false;
}
boolean this_present_my_double = true && this.isSetMy_double();
boolean that_present_my_double = true && that.isSetMy_double();
if (this_present_my_double || that_present_my_double) {
if (!(this_present_my_double && that_present_my_double))
return false;
if (this.my_double != that.my_double)
return false;
}
boolean this_present_my_string = true && this.isSetMy_string();
boolean that_present_my_string = true && that.isSetMy_string();
if (this_present_my_string || that_present_my_string) {
if (!(this_present_my_string && that_present_my_string))
return false;
if (!this.my_string.equals(that.my_string))
return false;
}
boolean this_present_my_binary = true && this.isSetMy_binary();
boolean that_present_my_binary = true && that.isSetMy_binary();
if (this_present_my_binary || that_present_my_binary) {
if (!(this_present_my_binary && that_present_my_binary))
return false;
if (!this.my_binary.equals(that.my_binary))
return false;
}
boolean this_present_my_string_string_map = true && this.isSetMy_string_string_map();
boolean that_present_my_string_string_map = true && that.isSetMy_string_string_map();
if (this_present_my_string_string_map || that_present_my_string_string_map) {
if (!(this_present_my_string_string_map && that_present_my_string_string_map))
return false;
if (!this.my_string_string_map.equals(that.my_string_string_map))
return false;
}
boolean this_present_my_string_enum_map = true && this.isSetMy_string_enum_map();
boolean that_present_my_string_enum_map = true && that.isSetMy_string_enum_map();
if (this_present_my_string_enum_map || that_present_my_string_enum_map) {
if (!(this_present_my_string_enum_map && that_present_my_string_enum_map))
return false;
if (!this.my_string_enum_map.equals(that.my_string_enum_map))
return false;
}
boolean this_present_my_enum_string_map = true && this.isSetMy_enum_string_map();
boolean that_present_my_enum_string_map = true && that.isSetMy_enum_string_map();
if (this_present_my_enum_string_map || that_present_my_enum_string_map) {
if (!(this_present_my_enum_string_map && that_present_my_enum_string_map))
return false;
if (!this.my_enum_string_map.equals(that.my_enum_string_map))
return false;
}
boolean this_present_my_enum_struct_map = true && this.isSetMy_enum_struct_map();
boolean that_present_my_enum_struct_map = true && that.isSetMy_enum_struct_map();
if (this_present_my_enum_struct_map || that_present_my_enum_struct_map) {
if (!(this_present_my_enum_struct_map && that_present_my_enum_struct_map))
return false;
if (!this.my_enum_struct_map.equals(that.my_enum_struct_map))
return false;
}
boolean this_present_my_enum_stringlist_map = true && this.isSetMy_enum_stringlist_map();
boolean that_present_my_enum_stringlist_map = true && that.isSetMy_enum_stringlist_map();
if (this_present_my_enum_stringlist_map || that_present_my_enum_stringlist_map) {
if (!(this_present_my_enum_stringlist_map && that_present_my_enum_stringlist_map))
return false;
if (!this.my_enum_stringlist_map.equals(that.my_enum_stringlist_map))
return false;
}
boolean this_present_my_enum_structlist_map = true && this.isSetMy_enum_structlist_map();
boolean that_present_my_enum_structlist_map = true && that.isSetMy_enum_structlist_map();
if (this_present_my_enum_structlist_map || that_present_my_enum_structlist_map) {
if (!(this_present_my_enum_structlist_map && that_present_my_enum_structlist_map))
return false;
if (!this.my_enum_structlist_map.equals(that.my_enum_structlist_map))
return false;
}
boolean this_present_my_stringlist = true && this.isSetMy_stringlist();
boolean that_present_my_stringlist = true && that.isSetMy_stringlist();
if (this_present_my_stringlist || that_present_my_stringlist) {
if (!(this_present_my_stringlist && that_present_my_stringlist))
return false;
if (!this.my_stringlist.equals(that.my_stringlist))
return false;
}
boolean this_present_my_structlist = true && this.isSetMy_structlist();
boolean that_present_my_structlist = true && that.isSetMy_structlist();
if (this_present_my_structlist || that_present_my_structlist) {
if (!(this_present_my_structlist && that_present_my_structlist))
return false;
if (!this.my_structlist.equals(that.my_structlist))
return false;
}
boolean this_present_my_enumlist = true && this.isSetMy_enumlist();
boolean that_present_my_enumlist = true && that.isSetMy_enumlist();
if (this_present_my_enumlist || that_present_my_enumlist) {
if (!(this_present_my_enumlist && that_present_my_enumlist))
return false;
if (!this.my_enumlist.equals(that.my_enumlist))
return false;
}
boolean this_present_my_stringset = true && this.isSetMy_stringset();
boolean that_present_my_stringset = true && that.isSetMy_stringset();
if (this_present_my_stringset || that_present_my_stringset) {
if (!(this_present_my_stringset && that_present_my_stringset))
return false;
if (!this.my_stringset.equals(that.my_stringset))
return false;
}
boolean this_present_my_enumset = true && this.isSetMy_enumset();
boolean that_present_my_enumset = true && that.isSetMy_enumset();
if (this_present_my_enumset || that_present_my_enumset) {
if (!(this_present_my_enumset && that_present_my_enumset))
return false;
if (!this.my_enumset.equals(that.my_enumset))
return false;
}
boolean this_present_my_structset = true && this.isSetMy_structset();
boolean that_present_my_structset = true && that.isSetMy_structset();
if (this_present_my_structset || that_present_my_structset) {
if (!(this_present_my_structset && that_present_my_structset))
return false;
if (!this.my_structset.equals(that.my_structset))
return false;
}
return true;
}
@Override
public int hashCode() {
List